package com.xteam.ecsystem.service.admin;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xteam.ecsystem.dao.MessageDao;

@Service
public class MessageService {

	@Autowired
	public MessageDao messagedao;

	public String getMessageList(int pageIndex, int pageSize, String bumName,
			String bumType, String bumTitle, String bumState, String isreply) {
		return messagedao.getMessageList(pageIndex, pageSize, bumName, bumType,
				bumTitle, bumState, isreply);
	}

	public void savereply(String name, String email, String bumId,
			String reply, String ipadd) {
		messagedao.savereply(name, email, bumId, reply, ipadd);
	}

	public void saveApprove(String bumId, String state) {
		messagedao.saveApprove(bumId, state);
	}

	public void delMessage(String bumId) {
		messagedao.delMessage(bumId);
	}

	public String findMessageReply(String bumId) {
		return messagedao.findMessageReply(bumId);
	}

	public void deleteReply(String briId) {
		messagedao.deleteReply(briId);
	}

	public void updateReply(String briId, String briContent) {
		messagedao.updateReply(briId,briContent);
	}

}
